From: Florian Müllner Date: Fri, 29 Jan 2021 18:03:07 +0000 (+0100) Subject: dash: Only show separator when there are running apps X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~616^2^2~528 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=151a104f9a48439896f32de233d8eea6b6c1b384;p=gnome-shell.git dash: Only show separator when there are running apps The separator is only really needed to distinguish favorite apps from running apps, the show-apps button is distinct enough already. Part-of: --- diff --git a/js/ui/dash.js b/js/ui/dash.js index 2d329ae91..16893f976 100644 --- a/js/ui/dash.js +++ b/js/ui/dash.js @@ -745,7 +745,8 @@ var Dash = GObject.registerClass({ // Update separator const nFavorites = Object.keys(favorites).length; - if (nFavorites > 0) { + const nIcons = children.length - removedActors.length; + if (nFavorites > 0 && nFavorites < nIcons) { if (!this._separator) { this._separator = new St.Widget({ style_class: 'dash-separator',